#!/usr/bin/python
# -*- coding utf-8 -*-
#-------------------------------------------------------------------------------
# Name:
# Purpose:
#
# Author:      ZWW
#
# Created:     03/05/2016
# Copyright:   (c) ZWW 2016
# Licence:     <your licence>
#-------------------------------------------------------------------------------
import numpy as np
import cv2

def main():
    #cap = cv2.VideoCapture(0)
    cap = cv2.VideoCapture("F:\\AV file\\Video\\4_DanceKiss_1080p50_RP3.264")

    while(True):
        ret, frame = cap.read()
        if not ret:
            break
        gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
        cv2.imshow('frame', gray)
        if cv2.waitKey(1) & 0xFF == ord('q'):
            break

    cap.release()
    cv2.destroyAllWindows()

if __name__ == '__main__':
    main()
